﻿namespace BrettM.Commands
{
    /// <summary>
    /// The following status are reflected once a command has completed
    /// </summary>
    public enum ExecuteResultStatus
    {
        /// <summary>
        /// The command has failed and cannot resume for either a
        /// technical reason or business rule violation.
        /// </summary>
        Failure = -1,
        /// <summary>
        /// The command successfully completed without any error or
        /// warning.
        /// </summary>
        Success = 0,
        /// <summary>
        /// The command successfully completed with warnings that the 
        /// user should be made aware of.
        /// </summary>
        Warnings = 1,
        /// <summary>
        /// The command did not complete, however if resubmitted with
        /// the suppression flags set the warning will be cleared and 
        /// complete successfully
        /// </summary>
        WartingAcknowledge = 2
    }
}
